<?php if ($this->pageCount): ?>

<div class="paginationControl">

<!-- Previous page link -->

<?php if (isset($this->previous)): ?>

   <a href="<?php echo $this->url(array('controller'=>'message', 'action'=>'index', 'page'=>$this->previous)); ?>">< 上一页</a> |

<?php else: ?>

   <span class="disabled">< 上一页</span> |

<?php endif; ?>

<!-- Numbered page links -->

<?php foreach ($this->pagesInRange as $page): ?>

  <?php if ($page != $this->current): ?>

     <a href="<?php echo $this->url(array('controller'=>'message', 'action'=>'index', 'page'=>$page)); ?>"><?php echo $page; ?></a> |

  <?php else: ?>

    <?php echo $page; ?> |

  <?php endif; ?>

<?php endforeach; ?>

<!-- Next page link -->

<?php if (isset($this->next)): ?>

   <a href="<?php echo $this->url(array('controller'=>'message', 'action'=>'index', 'page'=>$this->next)); ?>">下一页 ></a>

<?php else: ?>

   <span class="disabled">下一页 ></span>

<?php endif; ?>

</div>

<?php endif; ?>

